Repository navigation
docs(release): point macOS users at the .dmg checksum that exists - #394
Conversation
|
@claude review |
|
Claude finished @DeepDiver1975's task in 1m 53s —— View job Review
I traced the claims in the PR body against the actual workflow/script logic rather than just the diff:
One gap worth checking before merge: AGENTS.md says README's "Downloads prüfen" section is maintained in lockstep with Everything else — the macOS "start on the tag" fix, the new "After the tag" checklist, and the wording — matches the workflow's actual behavior. No other issues found. |
|
Companion PR opened: CodeForFire/codeforfire.github.io#2. That answers the open question from the review above. The website's Downloads prüfen section ( Per 🤖 Generated with Claude Code |
ebd3bb1 to
a6b1fe7
Compare
The download-verification block added with the release trust pack (#375) offers a macOS user exactly one line, `shasum -a 256 -c SHA256SUMS.txt`. That file covers the .msi, the .deb and the .apk; the .dmg is built after the release exists and carries its own .dmg.sha256, so a Mac user who downloaded the .dmg and followed our instruction got three "FAILED open or read" lines and a non-zero exit — the failure mode looks exactly like a tampered download. The README and the generated release notes now name the .dmg.sha256 path too. While verifying that path, two more things in docs/releasing.md: - A manual macOS run checks out the ref it was started on, and the instruction did not say to start it on the tag. Started on main it builds whatever has merged since and uploads that as the release's .dmg. - Nothing said what to check after a tag. Neither the checksum file nor the attestations had ever been produced by a real run, so there is now a four-item list for the first tag that does. The checksum step's shell was rehearsed against the real v0.5.0 assets in the layout download-artifact leaves behind: SHA256SUMS.txt lists three bare names, does not list itself, `sha256sum -c` passes in the download folder, and all three hashes match the digests GitHub reports for those assets. The attestation steps were deliberately not exercised — that would write permanent entries to the public transparency log — which is what the new checklist covers. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Thomas Müller <[email protected]>
a6b1fe7 to
2d620b8
Compare
`SHA256SUMS.txt` covers the `.msi`, the `.deb` and the `.apk`. The `.dmg` is built after the release already exists, so it deliberately never joins that file — it carries its own `.dmg.sha256` instead. The page offered a Mac user exactly one line, `shasum -a 256 -c SHA256SUMS.txt`, which on a downloaded `.dmg` reports three `FAILED open or read` entries and exits 1 — indistinguishable from a tampered download, and the worst possible first impression for the Datenschutzbeauftragter this section is written for. Companion to CodeForFire/lagebuch#394, which fixes the same trap in the README and the generated release notes. AGENTS.md there requires the two to change together. Signed-off-by: Thomas Müller <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Why
The release trust pack (#375) shipped
SHA256SUMS.txt, Sigstore attestations and a.sha256for the.dmg, and the README plus the generated release notes now tell users to check them. None of it has ever run: it only fires on av*tag, and v0.5.0 (2026-09-11) predates the whole thing. So I rehearsed the half that can be checked without a release, and it turned up a trap in what we tell users.The bug
A macOS user is offered exactly one line:
SHA256SUMS.txtcovers the.msi, the.deband the.apk. The.dmgis built after the release exists, so it deliberately never joins that file — it carries its own.dmg.sha256. A Mac user who downloaded the.dmgand followed our instruction therefore gets:Exit 1, three failures — which is what a tampered download looks like. For a Datenschutzbeauftragter checking our provenance story, that is the worst possible first impression, and it is our documentation at fault, not the artifacts.
The README and the release notes now name the
.dmg.sha256path as well.Two more, in
docs/releasing.mdworkflow_dispatchdefaults tomain, so following it as written builds whatever has merged since the tag and--clobbers that onto the release as its.dmg. Now spelled out, withgh workflow run release.yml --ref v0.6.0 -f version=0.6.0.gh attestation verifypasses for the three attested packages, the macOS run attached both the.dmgand its.sha256, and the pre-release flag matches the tag.What was verified, and what was not
Rehearsed locally against the real v0.5.0 assets, staged in the layout
actions/download-artifactleaves behind (dist/msi/,dist/deb/,dist/apk/), running the workflow's shell verbatim:SHA256SUMS.txtlists three bare names, nodist/prefix, and does not list itself — which is what writing it to$RUNNER_TEMPand moving it back is forsha256sum -c SHA256SUMS.txtin the download folder → exit 0digestGitHub reports for those release assets.dmgsidecar round-trips:shasum -a 256output format verifies withsha256sum -c, bare name includedVERSION=0.6.0Not exercised:
actions/attest-build-provenanceandgh attestation verify, theaction-gh-releaseupload and the macOS leg. Exercising them means writing permanent entries to the public Sigstore transparency log, so that was left alone on purpose — the new checklist is what closes it, on the first real tag.No
src/change; the CHANGELOG entry is there anyway because this changes an instruction users act on.🤖 Generated with Claude Code